﻿using personalplaner.common.mvvm.factory;

namespace personalplaner.databasewizard.viewmodels.factories
{
    public class WizardWindowModelFactory : IFactory
    {
        #region IFactory Members

        public object CreateViewModel(System.Windows.DependencyObject sender)
        {
            var vm = new WizardWindowViewModel(sender);

            //vm.ServiceLocator.RegisterService<ICommonDataAccess>(new CommonDataAccess(SettingsProvider.Settings));
            //vm.ServiceLocator.RegisterService<IAbteilungDataAccess>(new AbteilungDataAccess(SettingsProvider.Settings));
            //vm.ServiceLocator.RegisterService<IAnstellungDataAccess>(new AnstellungDataAccess(SettingsProvider.Settings));

            return vm;
        }

        #endregion
    }
}
